package travlefate.story.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import travlefate.story.R;

/**
 * @author keven
 * @data 15/12/21 下午3:07
 * @package travlefate.story.adapter
 *
 * 好友
 */
public class FriendAdapter extends BaseAdapter{

    @Override
    public int getCount() {
        return 20;
    }

    @Override
    public Object getItem(int position) {
        return position;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        ItemHolder holder;

        if(convertView==null){
            convertView = LayoutInflater.from(parent.getContext()).inflate(R.layout.type_friend_item,null);
            holder = new ItemHolder();
            convertView.setTag(holder);
        }else{
            holder = (ItemHolder) convertView.getTag();
        }

        return convertView;
    }

    class ItemHolder{


    }

}

